<?php
include "dbc.php";
$password=$_GET['value'];

$range = range(5,12);
    if(!in_array(strlen($password),$range)){
    $errors = "Password must be between 5 and 12 characters!";
    }
if(!$password){
    $errors = "Password is not defined!";
    }
echo $errors;
mysql_close();
?>